#include <stdio.h>

int main()
{
    int a = 0;
    while(a != 10)
    {
        printf("%d\n", a);
        scanf("%d", &a);
    }
    printf("end\n");
    return 0;
}

